﻿                          
   using System;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using Abp.Application.Services.Dto;
using Abp.Extensions;
using KDS.Mes.Mes.TestSlides;

namespace KDS.Mes.Mes.TestSlides.EntityMapper.TestSlides
{

	/// <summary>
    /// 滑道检测数据表的数据配置文件
    /// </summary>
    public class TestSlideCfg : EntityTypeConfiguration<TestSlide>
    {
		/// <summary>
        ///  构造方法[默认链接字符串< see cref = "MesDbContext" /> ]
        /// </summary>
		public TestSlideCfg ()
		{
		            ToTable("TestSlide", MesConsts.SchemaName.Basic);
 
      //todo: 需要将以下文件注入到MesDbContext中

  //		public IDbSet<TestSlide> TestSlides { get; set; }
   //		 modelBuilder.Configurations.Add(new TestSlideCfg());




		    // 计划日期
			Property(a => a.LINE).HasMaxLength(20);
		    // 仓库代码
			Property(a => a.STATION_NO).HasMaxLength(20);
		    // ALC_CD
			Property(a => a.SEAT_ID).HasMaxLength(20);
		    // SEQ_NO
			Property(a => a.RESULT).HasMaxLength(20);
		    // BODY_NO
			Property(a => a.SLIDE_FWD_MAX).HasMaxLength(20);
		    // TRIM_DATA
			Property(a => a.SLIDE_FWD_MIN).HasMaxLength(20);
		    // IF_FLAG
			Property(a => a.SLIDE_FWD_AVR).HasMaxLength(20);
		    // IF_FLAG
			Property(a => a.SLIDE_FWD_JUG).HasMaxLength(20);
		    // IF_FLAG
			Property(a => a.SLIDE_BWD_MAX).HasMaxLength(20);
		    // IF_FLAG
			Property(a => a.SLIDE_BWD_MIN).HasMaxLength(20);
		    // IF_FLAG
			Property(a => a.SLIDE_BWD_AVR).HasMaxLength(20);
		    // IF_FLAG
			Property(a => a.SLIDE_BWD_JUG).HasMaxLength(20);
		    // IF_FLAG
			Property(a => a.LEVER_MAX).HasMaxLength(20);
		    // IF_FLAG
			Property(a => a.LEVER_MIN).HasMaxLength(20);
		    // IF_FLAG
			Property(a => a.LEVER_AVR).HasMaxLength(20);
		    // IF_FLAG
			Property(a => a.LEVER_JUG).HasMaxLength(20);
		}
    }
}